package com.demo;

/**
 * @Description: 账户1
 * @Author: JKchen
 * @Date: 2022/10/30 18:46
 */
public class test {
    public static void main(String[] args) {
        Account zhangSan = new Account("张三",100);
        zhangSan.cun(20);
        System.out.println("余额为："+zhangSan.getBalance());
        zhangSan.qu(10);
        System.out.println("余额为："+zhangSan.getBalance());

        System.out.println(zhangSan.toString());

    }
}
